import React from 'react'
import NewsPublish from '../../../components/publish-manage/NewsPublish'
import UserPublich from '../../../components/publish-manage/UserPublich';
import { Button } from 'antd';

function Unplished() {
  const { dataSource, handlePublish } = UserPublich(1);


  return (
    <div>
      <NewsPublish
        dataSource={dataSource}
        button={(id) => <Button
          type='primary'
          style={{ margin: "0px 10px" }}
          onClick={() => {
            handlePublish(id)
          }}
        >发布</Button>}></NewsPublish>
    </div>
  )
}

export default Unplished